package secondStage.part1.extendsTest2;

/**
 * @ClassName: [Zi]
 * @Description: 子类
 * @Author: [黄劲松]
 * @CreateDate: [2021-02-08]
 * @Version: [v1.0]
 */
public class Zi extends Fu {
    //构造方法
    public Zi() {
        System.out.println("Zi类中无参数构造方法被调用");
    }

    public Zi(int age) {
        //super(30);//使用super调用带参数构造方法
        System.out.println("Zi类中有参数构造方法被调用");
    }
}
